﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using DQYT.HTDZ.BLL;
using System.Data;
using DQYT.HTDZ.Model;
using DQYT.HTDZ.DBUtility;
using DQYT.HTDZ.Common;
using System.Reflection;
using DQYT.HTDZ.BusinessService;
using System.Threading;
using System.Xml;
using System.IO;
using System.Text;

namespace DQYT.HTDZ.Web.Views.Analysis
{
    public partial class AnalysisMain : System.Web.UI.Page
    {
        private AnalysisFunc analsisFunc = new AnalysisFunc();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                ////initDdlWellID();
            }
        }
        ///// <summary>
        ///// 点击抽油机平衡linkbutton按钮事件
        ///// </summary>
        ///// <param name="sender"></param>
        ///// <param name="e"></param>
        //protected void lbn_Balance_Click(object sender, EventArgs e)
        //{
        //    Response.Redirect("~/Views/Analysis/Balance.aspx?jcrq="+ddl_jcrq.Text.ToString());
        //}
        ///// <summary>
        ///// 初始化井号选择列表
        ///// </summary> 
        //protected void initDdlWellID()
        //{
        //    DataTable dt = new DataTable();
        //    dt = analsisFunc.getWellidList();
        //    this.ddl_wellid.Items.Clear();
        //    for (int i = 0; i < dt.Rows.Count; i++)
        //    {
        //        ListItem item = new ListItem();
        //        item.Text = dt.Rows[i][0].ToString();
        //        item.Value = dt.Rows[i][0].ToString();
        //        this.ddl_wellid.Items.Add(item);
        //        this.ddl_wellid.DataBind();
        //    }
        //    initJcrq();

        //}
       
        ///// <summary>
        ///// 初始化当前选中井号的检测时间列表
        ///// </summary>
        //protected void initJcrq() 
        //{
        //    DataTable dt = new DataTable();
        //    dt = analsisFunc.getWellJCRQ(this.ddl_wellid.Text.ToString());
        //    this.ddl_jcrq.Items.Clear();
        //    for (int i = 0; i < dt.Rows.Count; i++)
        //    {
        //        ListItem item = new ListItem();
        //        item.Text = dt.Rows[i][0].ToString();
        //        item.Value = dt.Rows[i][0].ToString();
        //        this.ddl_jcrq.Items.Add(item);
        //        this.ddl_jcrq.DataBind();
        //    }
        //}

    }
}